package com.chinaisafe.demo.util;

import java.io.File;

/**
 * CodeGenerator
 * Description：代码生成工具类
 *
 * @author 上上谦
 * @date 2024/7/5 12:57
 */
public class CodeGeneratorUtil {

    public static void main(String[] args) {
        String fileSeparator = File.separator;
        com.chinaisafe.base.mybatisplus.util.CodeGeneratorUtil.generate(
                "jdbc:mysql://localhost:3306/demo-service?serverTimezone=GMT%2B8",
                "root",
                "root",
                "JiangZhaoYong",
                "chinaisafe-service" + fileSeparator + "demo-service",
                "demo",
                // 表名数组
                new String[]{"demo_table"},
                true);
    }
}
